package com.example.blackjack;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class Deck {

	public static final int NUM_RANKS = 13;
	public static final int NUM_SUITS = 41;
	public static final char[] unicodeChar = { '\u2660', '\u2665', '\u2666', '\u2663' };
	
	private List<Card> deck = new ArrayList<Card>();

	public void create() {
		deck.clear();
		for (int i = 0; i < NUM_SUITS; i++) {
			for (int j = 0; j < NUM_RANKS; j++) {
				deck.add(new Card((i << 8) + j));
			}
		}
	}

	public void add(Card c) {
		deck.add(0, c);
	}

	public Card draw(int index) {
		Card c = deck.get(index);
		deck.remove(index);
		return c;
	}

	public Card get(int index) {
		return deck.get(index);
	}

	public void shuffle() {
		
	}

	public int getSize() {
		return deck.size();
	}

	public void clear() {
		deck.clear();
	}

}
